package org.dtrd.modules.doctor.mapper;

import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.doctor.entity.po.DtrdRlDoctorTeamDoctor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 医生团队和医生的关系表 Mapper 接口
 * </p>
 *
 * @author QR
 * @since 2021-11-30 16:48:38
 */
@Mapper
public interface DtrdRlDoctorTeamDoctorMapper extends BaseMapper<DtrdRlDoctorTeamDoctor> {

    void removeDoctorTeamRelation(@Param("doctorIds") List<Integer> doctorIds);

    List<Integer> getTeamDoctorId(@Param("doctorId") Integer doctorId);

    Integer geTeamIdByDoctorId(@Param("doctorId") Integer doctorId);
    List<Integer> getAllTeamIdByDoctorId(@Param("doctorId") Integer doctorId);

    List<Integer> getTeamDoctorIdListByTeamId(@Param("teamId") Integer teamId);
}
